// pages/index/scene/hbTable/hbTable.js
import { resendSuperDanmu } from '../../../../api/income';

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    list: {
      type: Array,
    },
    rate: {
      type: Number,
    },
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    resendSuperDanmu(e) {
      ;
      const tmpGiftId = e.currentTarget.dataset.giftid;
      const tmpSplid = e.currentTarget.dataset.splid;
      if (!tmpGiftId || !tmpSplid) {
        return;
      }
      resendSuperDanmu({
        heart_wall_id: tmpGiftId,
        splid: tmpSplid,
      })
        .then(res => {
          ;
        })
        .catch(err => {
          ;
        });
    },
  },
});
